import { GET_USER_INFO } from "../constants"

const init = {
    userInfo: {}
}
export default function user(state = init, action) {
    if (action.type === GET_USER_INFO) {
        return {
            ...state,
            userInfo: action.payload
        }
    }
    return state
}